#ifndef _INTERPRETER_H
#define _INTERPRETER_H
/*
  author Sylvain Bertrand <digital.ragnarok@gmail.com>
  Protected by GNU Affero GPL v3 with some exceptions.
  See README at root of alga tree.
*/

struct ictx
{
	struct atombios *atb;
	u16 tbl;
	u32 ps_frame;
	size_t ps_frame_dws;
	u32 *ws;
	bool abort;
};

#define IO_MM			0	/* AMD port: direct */
#define IO_PCI			1
#define IO_SYSIO		2
#define IO_IIO			0x80	/* AMD port: indirect */

int interpret(struct atombios *atb, u16 tbl, u32 ps_frame, u8 idx);
#endif /* _INTERPRETER_H  */
